package com.cm.caseManagement.pojo.entity;


import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 代收代付对象 cm_advance_cost
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmAdvanceCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 案件id */
    @Excel(name = "案件id")
    private Long caseId;

    /** 垫款金额 */
    @Excel(name = "垫款金额")
    private BigDecimal advanceAmount;

    /** 回款金额 */
    @Excel(name = "回款金额")
    private BigDecimal returnAmount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setCaseId(Long caseId)
    {
        this.caseId = caseId;
    }

    public Long getCaseId()
    {
        return caseId;
    }

    public void setAdvanceAmount(BigDecimal advanceAmount)
    {
        this.advanceAmount = advanceAmount;
    }

    public BigDecimal getAdvanceAmount()
    {
        return advanceAmount;
    }

    public void setReturnAmount(BigDecimal returnAmount)
    {
        this.returnAmount = returnAmount;
    }

    public BigDecimal getReturnAmount()
    {
        return returnAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("caseId", getCaseId())
            .append("advanceAmount", getAdvanceAmount())
            .append("returnAmount", getReturnAmount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
